﻿using System;

class Student
{
    public string Name { get; set; }
    public int FacultyNumber { get; set; }

    public Student(string name, int facultyNumber)
    {
        if (name == "")
            throw new ArgumentNullException("Student name cannot be empty string.");
        else
            this.Name = name;

        if (facultyNumber < 10000 || facultyNumber > 99999)
            throw new ArgumentOutOfRangeException("The faculty number should be in the interval 10000 and 99999");
        else
            this.FacultyNumber = facultyNumber;    
    }

    public override int GetHashCode()
    {
        return FacultyNumber;
    }

    //public override string ToString()
    //{
    //    return this.Name + " " + this.FacultyNumber;
    //}

}